<%--
  Created by IntelliJ IDEA.
  User: zhaott
  Date: 2022/2/28
  Time: 8:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%--<%
        Cookie[] cookies=request.getCookies();
        if(null!=cookies){
            for (Cookie c:cookies){
                if(c.getName().equals("userName")){
                    response.sendRedirect("welcome.jsp");
                    return;
                }
            }
        }

    %>--%>
<form action="<%=request.getContextPath()%>/login" method="post">
    用户名：<input type="text" name="userName"/><br/>
    密码：<input type="password" name="pwd"><br/>
    <input type="submit" value="提交">
</form>
</body>
</html>
